import axios from 'axios';
import {ajax,base} from './config'

//变电站
export const getDepartZtree = params => { return axios.post(`${base}api/authController/getDepartZtree.do`, params); };

export const getsubList = params => { return ajax.getMinData({url:`${base}bsSubstationController.do?datagrid`, params}); };

export const removeList = params => { return ajax.postData({url:`${base}/bsSubstationController/doDel.do`, params}); };

// export const batchRemoveList = params => { return ajax.postData({url:`${base}bsSubstationController.do?doBatchDel`, params}); };

export const editList = params => { return ajax.postData({url:`${base}bsSubstationController.do?doUpdate`, params}); };

export const addList = params => { return ajax.postData({url:`${base}bsSubstationController.do?doAdd`, params}); };